package com.xrh.xdemo.api.request.addRequest;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class MenuAddRequest{

	/**菜单名称 */
	@ApiModelProperty("菜单名称")
	@NotBlank(message = "菜单名称不能为空")
	private String name;

	/**菜单图标 */
	@ApiModelProperty("菜单图标")
	private String icon;

	/**菜单链接地址 */
	@ApiModelProperty("菜单链接地址")
	private String url;
	
	/**类型 */
	@ApiModelProperty("类型")
	@NotNull(message = "类型不能为空")
	private Integer type;
	
	/**编号 */
	@ApiModelProperty("编号")
	@NotBlank(message = "编号不能为空")
	private String menuNo;
	
	/**父菜单id */
	@ApiModelProperty("父菜单id")
	private Long parentMenuId;

}
